package com.huawei.gzq.mapper;

import com.huawei.gzq.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    /**
     * 查询单个用户
     *
     * @param uid
     * @return
     */
    User findUser(@Param("id") int uid);

    /**
     * 查询所有用户
     *
     * @return
     */
    List<User> findAll();

    /**
     * 添加单个用户
     *
     * @param user
     * @return
     */
    int addUser(User user);
}
